package com.mall.mapper;

import com.mall.po.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author mahaoqi
 * @ClassName OrderMapper
 * @Description TODO
 * @Date 2021/1/7 11:46
 * @Version 1.0
 **/
public interface OrderMapper {

    /*
     * @Author mahaoqi
     * @Description 添加用户
     * @Date 2021/1/6 16:03
     * @Param [order]
     * @return java.lang.Integer
     **/
    public Integer insertOne(Order order);

    /*
     * @Author mahaoqi
     * @Description 根据id删除
     * @Date 2021/1/6 17:21
     * @Param [orderid]
     * @return java.lang.Integer
     **/
    public Integer deleteById(int orderid);

    /*
     * @Author mahaoqi
     * @Description 修改
     * @Date 2021/1/6 20:17
     * @Param [vip]
     * @return java.lang.Integer
     **/
    public Integer updateOne(Order order);

    /*
     * @Author mahaoqi
     * @Description 根据id修改
     * @Date 2021/1/6 20:17
     * @Param [vipid]
     * @return com.mall.po.Vip
     **/
    public Order selectById(int orderid);


    /*
     * @Author mahaoqi
     * @Description 分页
     * @Date 2021/1/7 15:06
     * @Param [page, limit]
     * @return java.util.List<com.mall.po.Order>
     **/
    public List<Order> selectList(@Param("page") int page,
                                  @Param("limit") int limit);


    public Integer selectCount();

    public Integer deleteBatch(Integer[] orderids);
}
